home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: cs.vu.nl!irmen
- From: irmen@cs.vu.nl (Irmen de Jong)
- Subject: Re: File sizes
- Nntp-Posting-Host: flits.cs.vu.nl
- References: <4gd9pu$cpr@mn5.swip.net> <WXQ7y*5+f@yaps.rhein.de> <4gjs20$i68@btmpjg.god.bel.alcatel.be>
- Sender: news@cs.vu.nl
- Organization: Dept. of Computer Science, Vrije Universiteit Amsterdam
- Date: Fri, 23 Feb 1996 09:21:13 GMT
- X-Newsreader: TIN [version 1.2 PL2]
- Message-ID: <Dn81zD.H5M.0.-s@cs.vu.nl>
-
- On 23 Feb 1996 07:57:52 GMT barnhoorn@nlev00 (barnhoorn@nlev00) wrote:
-
- : In article <WXQ7y*5+f@yaps.rhein.de>, arno@yaps.rhein.de (Arno Eigenwillig) writes:
- : |> In article <4gd9pu$cpr@mn5.swip.net>, Daniel Hallgren writes:
- : |>
- : |> > What's the best way of finding out the size of a file? Do I have to use
- : |> > Examine()
- : |>
- : |> Indeed.
- : |>
-
- : ..or do it in ANSI-C, by opening the file, seeking to the end of it
- : and getting the number of bytes returned from fseek().
-
- : Jaco.
-
- Aaaargh why does nobody use fstat()? Seeking to the end of a many-megabyte-file
- can take ages, especially on floppy. fstat() (and dos.library/Examine()) are
- instantaneous, AFAIK.
-
- --
- / Irmen de Jong (email: irmen@cs.vu.nl WWW: http://www.cs.vu.nl/~irmen/) \
- \ ``Nothing lasts forever'' -- Species /
-